<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Admin Template by www.oliyo.cn</title>
<meta name="description"
	content="Administry - Admin Template by www.oliyo.com" />
<meta name="keywords" content="Admin,Template" />
<!-- Favicons -->
<link rel="shortcut icon" type="image/png"
	href="<?php echo Yii::app()->theme->baseUrl?>/manager/img/favicons/favicon.png" />
<link rel="icon" type="image/png"
	href="<?php echo Yii::app()->theme->baseUrl?>/manager/img/favicons/favicon.png" />
<link rel="apple-touch-icon"
	href="<?php echo Yii::app()->theme->baseUrl?>/manager/img/favicons/apple.png" />
<!-- Main Stylesheet -->
<link rel="stylesheet"
	href="<?php echo Yii::app()->theme->baseUrl?>/manager/css/style.css"
	type="text/css" />
<!-- Colour Schemes
Default colour scheme is blue. Uncomment prefered stylesheet to use it.
<link rel="stylesheet" href="css/brown.css" type="text/css" media="screen" />  
<link rel="stylesheet" href="css/gray.css" type="text/css" media="screen" />  
<link rel="stylesheet" href="css/green.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/pink.css" type="text/css" media="screen" />  
<link rel="stylesheet" href="css/red.css" type="text/css" media="screen" />
-->
<!-- Your Custom Stylesheet -->
<link rel="stylesheet"
	href="<?php echo Yii::app()->theme->baseUrl?>/manager/css/custom.css"
	type="text/css" />
<!--swfobject - needed only if you require <video> tag support for older browsers -->
<script type="text/javascript"
	src="<?php echo Yii::app()->theme->baseUrl?>/manager/js/swfobject.js"></script>
<!-- jQuery with plugins -->
<script type="text/javascript"
	src="<?php echo Yii::app()->theme->baseUrl?>/manager/js/jquery-1.4.2.min.js"></script>
<!-- Could be loaded remotely from Google CDN : <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> -->
<script type="text/javascript"
	src="<?php echo Yii::app()->theme->baseUrl?>/manager/js/jquery.ui.core.min.js"></script>
<script type="text/javascript"
	src="<?php echo Yii::app()->theme->baseUrl?>/manager/js/jquery.ui.widget.min.js"></script>
<script type="text/javascript"
	src="<?php echo Yii::app()->theme->baseUrl?>/manager/js/jquery.ui.tabs.min.js"></script>
<!-- jQuery tooltips -->
<script type="text/javascript"
	src="<?php echo Yii::app()->theme->baseUrl?>/manager/js/jquery.tipTip.min.js"></script>
<!-- Superfish navigation -->
<script type="text/javascript"
	src="<?php echo Yii::app()->theme->baseUrl?>/manager/js/jquery.superfish.min.js"></script>
<script type="text/javascript"
	src="<?php echo Yii::app()->theme->baseUrl?>/manager/js/jquery.supersubs.min.js"></script>
<!-- jQuery form validation -->
<script type="text/javascript"
	src="<?php echo Yii::app()->theme->baseUrl?>/manager/js/jquery.validate_pack.js"></script>
<!-- jQuery popup box -->
<script type="text/javascript"
	src="<?php echo Yii::app()->theme->baseUrl?>/manager/js/jquery.nyroModal.pack.js"></script>
<!-- Internet Explorer Fixes -->
<!--[if IE]>
<link rel="stylesheet" type="text/css" media="all" href="css/ie.css"/>
<script src="js/html5.js"></script>
<![endif]-->
<!--Upgrade MSIE5.5-7 to be compatible with MSIE8: http://ie7-js.googlecode.com/svn/version/2.1(beta3)/IE8.js -->
<!--[if lt IE 8]>
<script src="js/IE8.js"></script>
<![endif]-->
<script type="text/javascript">

$(document).ready(function(){
	
	/* setup navigation, content boxes, etc... */
	Administry.setup();
	
	// validate signup form on keyup and submit
	var validator = $("#loginform").validate({
		rules: {
			username: "required",
			password: "required"
		},
		messages: {
			username: "Enter your username",
			password: "Provide your password"
		},
		// the errorPlacement has to take the layout into account
		errorPlacement: function(error, element) {
			error.insertAfter(element.parent().find('label:first'));
		},
		// set new class to error-labels to indicate valid fields
		success: function(label) {
			// set &nbsp; as text for IE
			label.html("&nbsp;").addClass("ok");
		}
	});

});
</script>
</head>
<body>
	<!-- Header -->
	<header id="top">
	<div class="wrapper-login">
		<!-- Title/Logo - can use text instead of image -->
		<div id="title">
			<img
				src="<?php echo Yii::app()->theme->baseUrl?>/manager/img/logo.png"
				alt="Administry" />
			<!--<span>Administry</span> demo-->
		</div>
	</div>
	</header>
	<!-- End of Header -->
	<!-- Page title -->
	<div id="pagetitle">
		<div class="wrapper-login"></div>
	</div>
	<!-- End of Page title -->

	<!-- Page content -->
	<div id="page">
		<!-- Wrapper -->
		<div class="wrapper-login">
			<!-- Login form -->
			<section class="full">

			<h3>Login www.oliyo.com</h3>

			<div class="box box-info">Type anything to log in</div>
			<?php $form=$this->beginWidget('CActiveForm', array(
                        'id'=>'login-form',
                        'enableClientValidation'=>true,
                        'clientOptions'=>array(
                            'validateOnSubmit'=>true,
			),
			)); ?>
			<p>
			<?php echo $form->labelEx($model,'username',array('class'=>'required')); ?>
				<br />
				<?php echo $form->textField($model,'username',array('class'=>'full')); ?>
				<?php echo $form->error($model,'username'); ?>
			</p>

			<p>
			<?php echo $form->labelEx($model,'password',array('class'=>'required')); ?>
			<?php echo $form->passwordField($model,'password',array('class'=>'full')); ?>
			<?php echo $form->error($model,'password'); ?>
			</p>

			<p>
			<?php echo $form->label($model,'rememberMe',array('class'=>'choice')); ?>
			<?php echo $form->checkBox($model,'rememberMe'); ?>
			<?php echo $form->error($model,'rememberMe'); ?>
			</p>

			<p>
			<?php echo CHtml::submitButton('Login',array('class'=>'btn btn-green big')); ?>
				&nbsp; <a href="#">忘记密码?</a> or <a href="#">帮助?</a>
			</p>
			<div class="clear">&nbsp;</div>

			<?php $this->endWidget(); ?> </section>
			<!-- End of login form -->

		</div>
		<!-- End of Wrapper -->
	</div>
	<!-- End of Page content -->

	<!-- Page footer -->
	<footer id="bottom">
	<div class="wrapper-login">
		<p>
			Copyright &copy; 2010 <b><a href="http://www.oliyo.com"
				title="www.oliyo.com">www.oliyo.cpm</a> </b> | Icons by <a
				href="http://www.oliyo.com">www.oliyo.com</a>
		</p>
	</div>
	</footer>
	<!-- End of Page footer -->

	<!-- User interface javascript load -->
	<script type="text/javascript"
		src="<?php echo Yii::app()->theme->baseUrl?>/manager/js/administry.js"></script>
</body>
</html>
